package com.group.three.mapper;

import com.group.three.entity.myOrder.MemberAddress;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MemberAddressBuyerMapper {
    //通过会员id查询地址
    List<MemberAddress> getAddressByMember(String memberId);
    //通过地址id查询地址详情信息
    MemberAddress getAddressItem(Long id);
    //修改会员地址信息
    int updateMemberAddress(@Param("shippingAddress")MemberAddress shippingAddress);
    //增加会员收件地址
    int addMemberAddress(@Param("shippingAddress")MemberAddress shippingAddress);
    //删除会员收件地址
    int removeMemberAddress(String id);
}
